
#include <iostream>
#include <string>


using std::cout;
using std::cin;
using std::endl;

int main()
{
    std::string str = "Rafael Moreira Savelli";
    std::string::const_reverse_iterator it;

    for( it = str.rbegin(); it != str.rend(); it++ )
    {
        cout << *it;
    }
    cout << endl;

    return 0;
}

